package com.example.pickupclosefirstdemo.base;

import android.app.Application;
import androidx.annotation.NonNull;
import androidx.lifecycle.AndroidViewModel;

import org.jetbrains.annotations.NotNull;

public class BaseModel<M extends IModel> extends AndroidViewModel {

    private M model;

    public BaseModel(@NotNull Application application){
        this(application,null);
    }

    public BaseModel(@NotNull Application application, M model){
        super(application);
        this.model = model;
    }

    @Override
    protected void onCleared() {
        super.onCleared();

    }
}
